Glitching protection