Fix broken layout of toolbars at startup, avoid blank window