fix retransmission bug