[BUGFIX] Use VersionState constants instead of numbers