diff --git a/niworkflows/anat/ants.py b/niworkflows/anat/ants.py index 17630d710b9..a077d91295d 100644 --- a/niworkflows/anat/ants.py +++ b/niworkflows/anat/ants.py @@ -459,7 +459,7 @@ def init_brain_extraction_wf( ]) wf.connect([ (inputnode, atropos_wf, [("in_files", "inputnode.in_files")]), - (inu_n4_final, atropos_wf, [("output_image", "inputnode.in_corrected")]), + (inu_n4, atropos_wf, [("output_image", "inputnode.in_corrected")]), (thr_brainmask, atropos_wf, [("output_image", "inputnode.in_mask")]), (atropos_wf, outputnode, [ ("outputnode.out_file", "out_file"),