Fix a minor bug in fetchDeapartureTime function