Correctly renaming between several paths