Fix N_SE-22664: fix the logic when appending edit field.