Fixing gauges and histograms