fix empty histograms