Scheduler: fix repeat mode