fix cron job bug