fix stats sampling