fixed crash on private key manager