statistic bug fix