menubar: fix runtime warning