Fix a bug in the new PACKET implementation