New function to fix SVG