fixed bug in addConfirmTo function