Rendering bugfix