diff --git a/scripts/errors/coll/ParamMatchingType.py b/scripts/errors/coll/ParamMatchingType.py
index 54274e808b07fea39c2a72027bfa97142b457bb4..fca1b3ba885ca252b6ab5509099aa89c80652eef 100644
--- a/scripts/errors/coll/ParamMatchingType.py
+++ b/scripts/errors/coll/ParamMatchingType.py
@@ -66,16 +66,17 @@ class InvalidComErrorColl(ErrorGenerator):
 
                     tm.set_description("ParamMatching-Type-" + func_to_use,
                                        "Wrong datatype matching: %s vs %s" % (type_1, type_2))
+                    type_var_1, buf_name_1, type_var_2, buf_name_2 = get_type_buffers(tm, type_1, type_2, 1, 1)
 
                     for call in tm.get_instruction("MPICALL", return_list=True):
                         call.set_rank_executing(0)
-                        call.set_arg("datatype", type_1)
+                        call.set_arg("datatype", type_var_1)
                         call.set_has_error()
                         if call.has_arg("recvbuf"):
-                            call.set_arg("recvbuf", type_2)
-                            call.set_arg("sendbuf", type_2)
+                            call.set_arg("recvbuf", buf_name_2)
+                            call.set_arg("sendbuf", buf_name_2)
                         else:
-                            call.set_arg("buffer", type_2)
+                            call.set_arg("buffer", buf_name_2)
                     yield tm
 
                     if generate_level < BASIC_TEST_LEVEL: