fixed errors in TileMap