Correct duplicate and paths