fix curl bug