Correct visibility of parent menu items.