Fixed bug with curl command