curl bug fix