fix check for public key when making a private derivation.