duplicate file rename bugfix