Fixed bug where searching nested folders broke everything.