fixing histogram size bug introducted in 1fb79faae