fix reverse distance