fixed bug in cURL snippet generation