fix bug for curl