fixed delete field when conditionally updating