bugfix on createSubmenu function