fix insert schedules