fix if sched