fix stats leak