fix emitVarDecl assignment