Proper labeling for formal elements nested in parts

Bug fix to ensure proper labeling for formal elements nested in parts