add protection for missing histograms