fix ordering of packets