fixed a bug in SVG parsing