fix range error on cron