Update schedule.c

fix