bugfix: only calculate min/max/median distances if any epi distances go into a location