Fixed ignore dups and erase dups issues.