diff --git a/src/interfaces/irdb/STARS_IRDB_Function.cpp b/src/interfaces/irdb/STARS_IRDB_Function.cpp
index eb21d51f192895b6c463177c23f28304f2013284..25d728e64b405c8e39f0d1ac6b80632be2ccd830 100644
--- a/src/interfaces/irdb/STARS_IRDB_Function.cpp
+++ b/src/interfaces/irdb/STARS_IRDB_Function.cpp
@@ -81,6 +81,8 @@ typedef list<SMPInstr*> SMPInstrList_t;
 	SMPInstrList_t::iterator FirstInBlock = func->Instrs.end();
         SMPInstrList_t::iterator LastInBlock = func->Instrs.end();
 	bool GoodRTL=false;
+        func->BuiltRTLs = true;
+
 
 	// build cfg 
 	ControlFlowGraph_t cfg(the_func);
@@ -172,6 +174,7 @@ typedef list<SMPInstr*> SMPInstrList_t;
 			// Build tree RTLs for the instruction.
 			GoodRTL = CurrInst->BuildRTL();
 			func->BuiltRTLs = (func->BuiltRTLs && GoodRTL);
+			CurrInst->Dump();
 			if (GoodRTL) {
 				CurrInst->SetGoodRTL();
 			}
diff --git a/src/interfaces/irdb/STARS_IRDB_Instruction.cpp b/src/interfaces/irdb/STARS_IRDB_Instruction.cpp
index 7c45ff814007079028c4d0626be1a1c0ce445da5..be1cd299d8dcab2608ce5e7f45e3f26962f1927d 100644
--- a/src/interfaces/irdb/STARS_IRDB_Instruction.cpp
+++ b/src/interfaces/irdb/STARS_IRDB_Instruction.cpp
@@ -1477,7 +1477,7 @@ bool STARS_IRDB_Instruction_t::STARS_GetCmd(void)
 		case  STARS_NN_pop:
 		{
 			// make op[0] from reg/imm in Argument2
-			Operands[0]=(std::make_shared<STARS_IRDB_op_t>(disasm,1,disasm.Argument2));	
+			Operands[0]=(std::make_shared<STARS_IRDB_op_t>(disasm,1,disasm.Argument1));	
 			// reset the features of this insn to say we use op 1.
 			features=STARS_CF_CHG1;			
 			do_default=false;