Fixed issues with ignoredups and erasedups.