Anti-glitch