fixed tile rendering bug