minor bug in svg.cpp fixed