Bugfix: point-to-point distance