Fixing menubar issue when pressing 'right' in a submenu