Fixed bug with search.