fixed add new field when conditionally updating