Fix ScheduleInstantFactory class