Fixed bug in search query.