Fixed issue when renaming files moved them