Fix menu element hierarchyZ