Fixed bugs in total mileage