Packet counting fix