trip history bug fix