Fix error caused by the recent semver upgrade.