Bug with file rename