Fixed all the rendering problems.