bugfix in search