i would remove .nii.gz from this as this should be set by overwrite extension.