Fix external file renaming