fix windows file rename bug