fix directory renaming