bugfix in PDU parsing function