PDU writer bug fix