Fix search scoping error