fix(deployment): fix possible bugs with reconstruction of private key