Reset state if invalid version and constraint
Add constraint validation
Merge pull request #17 from mfillon/reset-state-valid-constraint

Reset state + valid constraint