 				if (now_J-i > this.valid_to_J) continue;
 				if (now_J-i < this.valid_from_J) break;
 				
-				i_date = new Date(now.getTime()-i*1000*60*60*24);
+				//i_date = new Date(now.getTime()-i*1000*60*60*24);
+				i_date.setTime(i_date.getTime()-1000*60*60*24);
 				
 	            if (this.instring(this.cron_day.toString(), i_date.getDate().toString()) == false) continue;
 	            if (this.instring(this.cron_month.toString(), i_date.getMonth().toString()) == false) continue;

			var next_date:Date = null;
			
			var now:Date = new Date();
			var now_J:uint = uint( ( now.getTime() / 1000 + 1 ) / 60 / 60 / 24 +.5 );
			var i_date:Date = new Date(now.getTime());
			
			for (var i:uint=0;i<366;i++)
			{
				next_date = null;

			this.addChild(this.current_layout);
		}
		
		private function playNextLayoutOnTimer(event:TimerEvent):void
		{
			event.stopPropagation();
