Fix trip delete bug