Fixed switching between TX/RX bug