Fixed bug in curl command