fix possible crash on PNA using external device with bidirectional data flow