Fixed distanceToPoint