fix stats bug