bugfix for search