Fixed a bug where the seq of packets are not checked