fix #2867: Multiple distance

* workaround distance calculation for all 4.2.x versions