improved repairing of schedule