fix a bug when submenu selected, sidebar doesn't react