fix a bug with creating new Trip object