Fix memory stats.