Fixed most errors with TileMap.