Fix histogram compression