tPAC comodulogram error

Hi All,

Ive calculated tPAC values from source signals for 7 individuals and am currently attempting to generate a comodulogram for these data. However, the following error message is coming up:

** Error: [process_pac_comod] Frequency > Time-resolved Phase-Amplitude Coupling > Extracting comodulogram from tPAC maps
** Line 226: griddedInterpolant
** Sample points must be sorted in ascending order.
**
** Call stack:
** >interp2.m>makegriddedinterp at 226
** >interp2.m at 134
** >process_pac_comod.m>Compute at 561
** >process_pac_comod.m>Run at 204
** >process_pac_comod.m at 39
** >bst_process.m>Run at 236
** >bst_process.m at 38
** >panel_process1.m>RunProcess at 138
** >panel_process1.m at 26
** >gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 777
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_Callback) at 298

Below is the call to the tPAC process:

% Process: tPAC
sFiles = bst_process('CallProcess', 'process_pac_dynamic', sFiles, , ...
'timewindow', , ...
'margin', 1, ... % No
'nesting', [4, 6], ...
'nested', [25, 80], ...
'fAResolution', 2, ...
'winLen', 0.5, ...
'clusters', {'Destrieux', {'G_front_middle L'}}, ...
'target_res', '', ...
'max_block_size', 20, ...
'avgoutput', 0);

Any help on this would be greatly appreciated.

cheers,

George