fixed bugs in ring buffer and nfqueue