Fix disabled schedules bug