curl option reset fix