Fixed render glitch