fix keys history