Fix a packet-related crash.