fix transmit bug