Fixed bug in hist example.