some svg related fixes