bugfix in form: not deleting fields when empty