Big oops in total distance computation!