Fixed the rendering issues.