only search within parent scope, search bug fix