fixed the orientation of the histograms