Small fix in ScheduleExtensions