Fix bug with input route distance

Bug existed in Calculate Distance where distance increased for every
click on the Calculate button as variable was not being reset on call.