Bugfix in private key generation.