fixed transmit hang in main todo loop