avoid duplication while copy plugin