fix the rendering problem