fix histogram