fixed file rename issue