fix pub/private key mixup