fix broken search functions