fix reset of stats