Bugfix in the search