fixed stat manager mem leaks