Fixing error with bin alignment on histograms