Fix trip time bug