Fixed a bug within the search