fix histogram persistence