fixed timing glitch