fixed faraday_middleware bug