repair settings for keypair