Fix XBHttpClient init