stats package, tried to fix memory leak in EntityListener