Fixes duplication check