fix user supplied keypair