Fix minvalue validation.