broken search fix
fix search function