Fix clearing the unused private key from public keys (calling on wrong variable).