fixed curl error