Fixed the 2D rendering process.