Fix an error, semver is not defined