Fix error in renaming