Fixed bug with recursive searches.