Fixed bug which prevents cron from running.