fix Curl bugs