fix statistic update