Fixed error in old api caused by changes to the search functions