fix ScheduleWriter