Fixed issue with returning multiple results with the same distance.
Fixed issue with returning multiple results with the same distance.