fix histogram ranges