Fixed cron bug