Fix a bug causing exceptions when semver is used for the first time