diff --git a/src/TNL/Matrices/MatrixReader.h b/src/TNL/Matrices/MatrixReader.h
index b20ac0f97301d40747b6aff1e5117546e7c0df33..b88047e6831c3b9b6d70a6e2be00199a2bf6b9fa 100644
--- a/src/TNL/Matrices/MatrixReader.h
+++ b/src/TNL/Matrices/MatrixReader.h
@@ -81,7 +81,6 @@ class MatrixReader
 
 /// This is to prevent from appearing in Doxygen documentation.
 /// \cond HIDDEN_CLASS
-
 template< typename Matrix >
 class MatrixReader< Matrix, TNL::Devices::Host >
 {
diff --git a/src/TNL/Matrices/MatrixWriter.h b/src/TNL/Matrices/MatrixWriter.h
index 72d00a55691b808682f4c6512d21baf32d4ef837..41c3523f6fc78c4d3b63b8541d1dd9492f6b1782 100644
--- a/src/TNL/Matrices/MatrixWriter.h
+++ b/src/TNL/Matrices/MatrixWriter.h
@@ -123,7 +123,7 @@ class MatrixWriter
                             bool verbose = false );
 
    protected:
-      using HostMatrix = typename Matrix::Self< RealType, TNL::Devices::Host >;
+      using HostMatrix = typename Matrix::template Self< RealType, TNL::Devices::Host >;
 };
 
 /// This is to prevent from appearing in Doxygen documentation.