Bug fix in filterPacket().