Fix invalid assertion on duplicated packet