Fixed bug in CpuScheduler.