fixed a crash

be aware of macro expansions when removing var init exprs