Fix http client creation