Corrected search issue

I corrected the issue of recursive search mismatch.