fixed bug when cron is executed too early

fixed bug when cron is executed before server is loaded