Fixed a bug with the search by text.