Fix duplicate packet problem.