Added preamble fix for density histograms