histogram minor fixes