Fixed a rendering bug