Fixed rednering glitches