Fixed errors with TileMap