Fix bounds check in VersionRange