diff --git a/MeshLib/IO/XDMF/XdmfHdfWriter.cpp b/MeshLib/IO/XDMF/XdmfHdfWriter.cpp
index c84c0fe906d0bf6471f8b178c210bd3963471b95..9230a80ad6e6cba08ba25581804e442adaf81591 100644
--- a/MeshLib/IO/XDMF/XdmfHdfWriter.cpp
+++ b/MeshLib/IO/XDMF/XdmfHdfWriter.cpp
@@ -119,10 +119,10 @@ XdmfHdfWriter::XdmfHdfWriter(MeshLib::Mesh const& mesh,
 
     if (isFileManager())
     {
-        auto xdmf_writer_fn =
-            write_xdmf(geometry.xdmf, topology.xdmf, xdmf_constant_attributes,
-                       xdmf_variable_attributes, hdf_filepath.string(),
-                       GitInfoLib::GitInfo::ogs_version);
+        auto xdmf_writer_fn = write_xdmf(
+            geometry.xdmf, topology.xdmf, xdmf_constant_attributes,
+            xdmf_variable_attributes, hdf_filepath.filename().string(),
+            GitInfoLib::GitInfo::ogs_version);
         _xdmf_writer = std::make_unique<XdmfWriter>(xdmf_filepath.string(),
                                                     xdmf_writer_fn);
         _xdmf_writer->addTimeStep(initial_time);
diff --git a/ProcessLib/LiquidFlow/Tests.cmake b/ProcessLib/LiquidFlow/Tests.cmake
index d2a4af6a0e19496a88d306ea61f7fca26013d5ab..a302aca454319a6fdada998be8a693b33b576a9d 100644
--- a/ProcessLib/LiquidFlow/Tests.cmake
+++ b/ProcessLib/LiquidFlow/Tests.cmake
@@ -482,9 +482,7 @@ AddTest(
     WRAPPER time
     TESTER xdmfdiff
     # See https://gitlab.opengeosys.org/ogs/ogs/-/merge_requests/3184#note_85104
-    # TODO: re-enable this, see #3177.
-    # REQUIREMENTS NOT OGS_USE_MPI AND NOT COMPILER_IS_APPLE_CLANG
-    REQUIREMENTS OFF
+    REQUIREMENTS NOT OGS_USE_MPI AND NOT COMPILER_IS_APPLE_CLANG
     DIFF_DATA
     square_5x5_tris_32.xdmf square_5x5_tris_32.xdmf pressure pressure 1e-7 1e-13
     square_5x5_tris_32.xdmf square_5x5_tris_32.xdmf HydraulicFlow HydraulicFlow 1e-7 1e-13