Warning in StatsFromWeightedGrid

I report here the warning (which will become an error in future releases). I think I got this once I updated to Matlab R2024a. One can simply ignore it but it shows up multiple times

Warning: Colon operands must be real scalars. This warning will become an error in a future release. 
> In StatsFromWeightedGrid (line 198)
In EvalFnOnAgentDist_AllStats_Case1 (line 157)
In fun_ATR_perc (line 30)
In solve_toolkit (line 279)
In main (line 40) 

Thanks for letting me know. Come September I will update Matlab and then go through and clean this up.