script : add fix for timing of setting of retract time in layer