Fix the header menus not update issue