Fix error in travel calculation