Bug fixed?!

The value of totalDis should be reseted each tiem before calculate the
total distance