Fixed a histogram bug