fixed the tile rendering