Fix search invalid build error