Bug fix in set_curl_options method