Fix /trips to use index