diff --git a/LibOneM2M/OneM2M_Functions.ttcn b/LibOneM2M/OneM2M_Functions.ttcn
index 57be855a7b685c8a6b2b4b6cda114dd0109aa6c2..20f6f49ecc4239fee0fa293265b14a3fba668445 100644
--- a/LibOneM2M/OneM2M_Functions.ttcn
+++ b/LibOneM2M/OneM2M_Functions.ttcn
@@ -1525,7 +1525,7 @@ module OneM2M_Functions {
 						v_response := m_responsePrimitive(int2001,v_request.primitive.requestPrimitive.requestIdentifier);
 						v_response.from_ := PX_CSE1_ID;
 						v_response.to_ := v_request.primitive.requestPrimitive.from_;
-						v_response.primitiveContent.remoteCSE := vc_localResourcesList[v_localResourceIndex].resource;
+						v_response.primitiveContent.remoteCSE := vc_localResourcesList[v_localResourceIndex].resource.remoteCSE;
 						mccPort.send(m_response(v_response));
 						
 						v_resourceIndex := f_setResource(v_request.primitive.responsePrimitive.primitiveContent, int16, -1);