The duplication check logic on units and categories was modified.