fixed a crash caused by macro expansions

if an expr is a macro expansion, rewrite the expansion
location in the source code