fix display glitches