Better warning on duplication