fix wrong interpretation of terrain height