Fixed calling "search" in folders -- didn't check for array size.