Fixed an error with getTerrbyCoord()