Fix histogram support