Bugfix for searching.