diff --git a/simics-workspace/modules/afdxES/pci-register.dml b/simics-workspace/modules/afdxES/pci-register.dml
index b84b254..90f57ca 100644
--- a/simics-workspace/modules/afdxES/pci-register.dml
+++ b/simics-workspace/modules/afdxES/pci-register.dml
@@ -1284,10 +1284,8 @@ bank pciport{

             if (is_empty) {
                 value = 0;
-                log "info" : "Is mepty";
             } else {
                 value = 1;
-                log "info" : "Is not empty";
             }
         }

@@ -1320,6 +1318,7 @@ bank pciport{
                     }
                 } else {
                     log "error": "wrong port id";
+                    return;
                 }

                 local exception_type_t ex;
@@ -1346,7 +1345,7 @@ bank pciport{

                 log "info": "set DMA done status";
                 $pciport.rx_rec_state = 1;
-
+                $pci9056.recvdmadone = 1;
             }
         }
     }
diff --git a/simics-workspace/modules/afdxES/unpacket_frame.dml b/simics-workspace/modules/afdxES/unpacket_frame.dml
index dd531f1..80c3f4a 100644
--- a/simics-workspace/modules/afdxES/unpacket_frame.dml
+++ b/simics-workspace/modules/afdxES/unpacket_frame.dml
@@ -93,11 +93,6 @@ method unpacket_frame(uint8 *buffer,uint32 size)->(RX_MIB rx_mib) {
 		switch (udp_item.port_type) {
 			case 0: case 1:
 			    call $EnPortQueue(($port[port_id].queue),udp_item)->(result);
-                  //for test start
-
-                $pci9056.recvdmadone = 1;
-                $pciport.rx_check_valid = 1;
-				//for test end
 				if(result == false) {
 					log "info" : "port queue is full!";
                     ++$rx_buf_overflow_number[port_id];
@@ -107,10 +102,6 @@ method unpacket_frame(uint8 *buffer,uint32 size)->(RX_MIB rx_mib) {
 				break;
 			case 2:
 			    call $RefreshPortData(&($port[port_id]), udp_item);
-                  //for test start
-                $pci9056.recvdmadone = 1;
-                $pciport.rx_check_valid = 1;
-				//for test end
 			default:
 			    log "error" : "Unsupported port type";
 			    break;