Fix Problem with keypair generation.