fix stats' bug