issue #28: with current distance to point (bugfix)