Fixed the code in TerrainMap.py