Fix validation of the value