Recreate dynamic submenus after reconstructing menu bar, fixes #524