Fix geometric_distance.