bad file reference after renaming