I dont see the bug? The commands are supposed to disable restart for 240 seconds after the start of the race and 240 seconds after the end, arent they? So in lap 9 of 10, more than 240 seconds passed after the start.