Fix the bug of the menu_bar