fixed the broken search