Bug fix in search suggestions code