fixed bug when generating first version of svg