fix histogram calculation bin size