Duplicate removal fix.