small fix for empty "within_distance"