FMS-273 - Fix ranking distance