fix cross-file rename bug