Bugfix for searches