Fix ByteStream and Packet initialization.