fixed bug in statistics, analyzing imbalance