Fix semver package upgrade issue