Fix recipients_distance function.