Problem when plotting

Hi guys,
first of all thanks for the huge work you do with brainstorm, it's amazing and this platform helped me so much.

I am writting here because I encountered recently a problem when plotting topography:
I wrote a script to plot an EEG topographical map:

hFig = view_surface_data(SurfaceFile, OverlayFile, 'EEG', 'NewFigure');
            panel_time('SetCurrentTime', j)
            set(hFig,'Position',[1 482 613 568])
            set(hFig,'Color',[1 1 1])
            panel_surface('SetSurfaceColor', hFig, 1, [0 0 0.5])
            bst_colormaps('SetMaxCustom','eeg', [], round(min(Data.F(:)),1), round(max(Data.F(:)),1))
            figure_3d('ViewSensors', hFig, 1, 1);
            figure_3d('SetStandardView', hFig, 'left');

It went well until recently. Indeed, Matlab throw me an error message:

**Error using horzcat**
**Dimensions of arrays being concatenated are not consistent.**

**Error in panel_surface (line 40)**
**eval(macro_method);**

**Error in view_surface_data (line 298)**
**isOk = panel_surface('SetSurfaceData', hFig, iTess, OverlayType, OverlayFile, isStat);**

**Error in tree_callbacks>@(h,ev)view_surface_data(sSubject.Surface(sSubject.iScalp).FileName,filenameRelative,AllMod{iMod}) (line 1392)**
**                                gui_component('MenuItem', jMenuModality, [], 'Display on scalp', IconLoader.ICON_SURFACE_SCALP, [],**
**                                @(h,ev)view_surface_data(sSubject.Surface(sSubject.iScalp).FileName, filenameRelative, AllMod{iMod}));**

Since then, I can't plot any topographical map (EEG, SEEG), even from previous studies with which it went totally well. I cannot do anything now.
I restarted Brainstorm (up to date), Matlab (2020b), my computer (Windows 10, i9-10900X CPU @ 3.70GHz, 64Gb RAM, Nvidia RTX4000) etc. but nothing.

Do you have any idea on how to fix it?
Thanks!

Unfortunately, this error stack trace doesn't provide the real origin of the error...

The line that has the highest chance to be faulty is this one:
bst_colormaps('SetMaxCustom','eeg', [], round(min(Data.F(:)),1), round(max(Data.F(:)),1))

If you set the colormap min/max to something that is doesn't work, then it would keep crashing permanently.Try resetting the EEG colormap:
bst_colormaps('RestoreDefaults','eeg')

If there is some other parameter that was altered and causes this problem, you could try to reset all the Brainstorm preferences (File > Edit preferences).

Thanks a lot Francois!
I tested the min and max and it gave me only one value (min < 0 and max > 0), so normally this line works, I may have done something wrong when testing the command.
The issue is fixed thanks to the bst_colormaps('RestoreDefaults','eeg'), I will keep that in mind.

Thanks again for the tip!