Fixed code

Fixed when this.trip is not there.