Fixes a problem with the search