Fix validation error in sp.search