fixed the rendering