fixing histogram bugs