Fixed bug in search.