Fixed problem with private key generation.