Corrected a bug creating a large number of files of HISTOGRAMS.