fix "error parsing z" error in SVG