issue #5685: fix menu _ctor bug