fix private key creation error