bug fix for stats recovery