Fix typo in dimfield_field_validate().