fix for pubkey error