Fixed a cron bug