Fixed bug when moving files after renaming them.