restore correct keys