Fixed updateTrip method according to the issue #11.