fix regressions in paste and save-as-svg