Fixed rendering and flickering.