fix svg nested elements