Update schedule.c

more clean reset