Fix up how we save the private key.