fixed submenu bug