Fixed bug in schedule.