fix a type of field and omitempty