fixed callback for in-memory histogram