Fix bug in itinerary search.