fixed drawing glitch