fix crash when rename not c file and fix a case that cannot do cross renaming