Fix difficulty validator.