fix svg writer