fix cycling bug in sub-menus