fix statistic bug