Fix convert histogram datapoints