Solved a problem activating a menu item that have subitems