fix stat manager bug