Fix TileMap rendering bug.