fix obstacleToValue