fixed bug with search