Fix many graphical glitches