search hook bugfix