bugfix EuclidianDistance