fixed statistic bugs