[Scheduler] Debug the scheduler, now it works.