Fixed a bug in which a search would return the same results