Fix some errors in SVG data generator.