bug fix on cron jobs.