diff --git a/rmw_connextdds_common/include/rmw_connextdds/type_support.hpp b/rmw_connextdds_common/include/rmw_connextdds/type_support.hpp
index 87eb9ac9..98c3bad2 100644
--- a/rmw_connextdds_common/include/rmw_connextdds/type_support.hpp
+++ b/rmw_connextdds_common/include/rmw_connextdds/type_support.hpp
@@ -86,7 +86,7 @@ class RMW_Connext_MessageTypeSupport
 
   const rosidl_type_hash_t & type_hash() const
   {
-    return *_type_support_fastrtps->type_hash;
+    return *_type_support_fastrtps->get_type_hash_func(_type_support_fastrtps);
   }
 
   uint32_t type_serialized_size_max() const