fix generation private key