fixing graphical glitch