squashed a bug involving searching in empty or nonexistent folders