Fix a packet handling issue.