fixed private key version checking