svg (and pdf) handling: bug and fix