Fixed problem with set curl options