Fix typo in new distance functions