Fix a bug in HttpService