Fix setting correct protocol for XDR