Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16218)
+++ schedule/Module/calendar.php	(revision 16219)
@@ -93,4 +93,6 @@
 							for(var i=0; i<source.length;i++)
 							{
+								xml.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[i])+"&time="+year+"-"+month+"-"+day,true);
+								
 								
 								if(window.XMLHttpRequest)
@@ -258,5 +260,5 @@
 											{
 												chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source
-												for(var DataCnt=0;DataCnt<y.length;DataCnt++)
+												for(var DataCnt=0;DataCnt<y[src].length;DataCnt++)
 												{
 													
@@ -277,5 +279,4 @@
 									}
 								}
-								xml.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[i])+"&time="+year+"-"+month+"-"+day,true);
 								xml.send();
 								
