fixes syntax error in curl