Fix ticket searching bug