fix curl client bug