fixed render glitch