Fixed error in gen_svg