Fixed file rename issue.