fix memory counting