Fixed search function

search has been fixed