fixed bug on search