Fixed some bleeding with private keys