diff --git a/src/problems/tnlPDEProblem.h b/src/problems/tnlPDEProblem.h
index 5ea0699400d2e4ac6d9dc0d4b0dfa4d3ae5b9b55..eb56959ee0ead58c1cdb48167c43645fe5d48acc 100644
--- a/src/problems/tnlPDEProblem.h
+++ b/src/problems/tnlPDEProblem.h
@@ -50,7 +50,7 @@ class tnlPDEProblem : public tnlProblem< Real, Device, Index >
       void writeProlog( tnlLogger& logger,
                         const tnlParameterContainer& parameters ) const;
 
-      IndexType getAuxiliaryDofs( const MeshType& mesh ) const;
+      typename tnlPDEProblem< Mesh, Real, Device, Index >::IndexType getAuxiliaryDofs( const MeshType& mesh ) const;
 
       void bindAuxiliaryDofs( const MeshType& mesh,
                               DofVectorType& auxiliaryDofs );
@@ -68,7 +68,7 @@ class tnlPDEProblem : public tnlProblem< Real, Device, Index >
                         DofVectorType& auxDofs );
 
 
-      tnlSolverMonitor< RealType, IndexType >* getSolverMonitor();
+      tnlSolverMonitor< typename tnlPDEProblem< Mesh, Real, Device, Index >::RealType, typename tnlPDEProblem< Mesh, Real, Device, Index >::IndexType >* getSolverMonitor();
 
 
 };