must clear key before restore