Error in second level analysis

Hello community,

i have been working on CONN for a month now and now I am trying to do comparative analysis between groups of data.

%Setting up groups
batch.Setup.subjects.names = {‘Alzheimers’,‘MCI’,‘Controls’};
batch.Setup.subjects.effects{1} = [1;1;1;1;1;1;1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0];
batch.Setup.subjects.effects{2} = [0;0;0;0;0;0;0;0;1;1;1;1;1;1;1;0;0;0;0;0;0;0;0;0;0];
batch.Setup.subjects.effects{3} = [0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;1;1;1;1;1;1;1;1;1];

I gave group settings as above, and I have replaced NaN in my confounds file to ‘0’
but after the whole process while displaying GUI, I am getting this error whenever i click second level analysis.

ERROR DESCRIPTION:

Array indices must be positive integers or logical values.
Error in conn (line 10667)
ncovariates=CONN_h.menus.m_results.showneffects(ncovariates);
Error in conn_menumanager (line 135)
feval(CONN_MM.MENU{n0}.callback2{n1}{1},CONN_MM.MENU{n0}.callback2{n1}{2:end});
CONN20.b
SPM12 + DAiSS DEM FieldMap MEEGtools
Matlab v.2021a
project: CONN20.b
storage: 270.2Gb available

What is the meaning of this error???
Can anyone help me ?

I also get the below error
ERROR DESCRIPTION:

Unrecognized field name “nconditions”.
Error in conn_process (line 5218)
nconditions=CONN_x.Results.xX.nconditions;
Error in conn_process (line 61)
case ‘results_roi’, [varargout{1:nargout}]=conn_process(17,varargin{:});
Error in conn_displayroi (line 107)
[results,filepath]=conn_process(varargin{:});
Error in conn (line 10655)
conn_displayroi(‘init’,‘results_roi’);
CONN20.b
SPM12 + DAiSS DEM FieldMap MEEGtools
Matlab v.2021a
project: CONN20.b
storage: 270.2Gb available

but I have already mentioned conditions
"
batch.Setup.conditions.onsets{ncond}{nsub}{nses}=0;
batch.Setup.conditions.durations{ncond}{nsub}{nses}=inf;
"
what could be the reason?