prevent histograms from being plotted twice