Fixed bug with render.