Fixed ScheduleController error.