fix edit trip active issue