Fixed issues with sequence deduplication