fix file rename bug