fix transformPackageVersion()