fix bug in submenu