fix crash in rename
use import alias in linked mode proposal
fix an npe