Fix file renaming issue.