fix bug in cron schedule