fixing some graphical glitches