fix curl downloading