fixed cron bug