Fixed the white pixels bug in the renderer.