cron job bug fix