Update svg.c to fix #727