fix the statistic bug