Fixed a bug in renaming edited files