fixes cron functionality