Bug fix in rendering.