fixed sub-menu behaviour