Bugfix no average distance