Fixed a tile rendering bug