Fix graphical glitches