fix bug with search and menu