fix histogram loc