fix curl problem