 				groupNodes.append(node)
 			}
 		}
-        return Group(contents: groupNodes, place: position)
+		return Group(contents: groupNodes, place: position, tag: getTag(element))
 	}
     
     fileprivate func getMask(mask: String) -> Locus? {


			return Text(text: text, font: getFont(attributes, fontName: fontName, fontSize: fontSize),
				fill: fill ?? getFillColor(attributes) ?? Color.black, baseline: .alphabetic,
				place: pos, opacity: getOpacity(attributes) ?? opacity)
	}

	fileprivate func getFont(_ attributes: [String: String] = [:], fontName: String?, fontSize: Int?) -> Font {

					let tspans = (elementString as NSString).substring(with: match.rangeAt(1))
					return Group(contents: collectTspans(tspans, fill: fill, opacity: opacity, fontName: fontName, fontSize: fontSize,
						bounds: Rect(x: getDoubleValue(element, attribute: "x") ?? 0, y: getDoubleValue(element, attribute: "y") ?? 0)),
						place: pos, tag: getTag(element))
				}
			}
			return .none
