fixes glitches