Fixed duplicity check