Replaced subSvg "svg" elements with "g" elements, since "svg" element cannot contain other "svg" elements.