fix the sched