fixed graphics glitch