Get rid of last duplicates