Fix for same trip appearing multiple times in the result.