Fixes to historgram.