fixed cron job bug