Fix histograms with broken data