Fix search function for trips