fix curl issue