Fixed problem with histograms.
Merge remote-tracking branch 'origin/master'