Fixes to curl command