Update Duplicates.java

Fix collision