Toolbars close unnecessarily

The toolbars close when I edit the ribbon menu and need to be opened again each time.