fixes to modify_schedule following testing with real data.