fix error in curl