fix stats bugs