fix bug that prevented searching nested folders