fix bug in full replacement dialog

dialog was skipping the first cycle