fix #1899: CME in DistanceComparator