fixed bug in SubgridStatistics