fix curl call