fix bug with smart search on the same tree