bug fix on cron