fixes for rendering