fixed restart glitch