fix bug for repeat send