diff --git a/src/functions/tnlFunctionAdapter.h b/src/functions/tnlFunctionAdapter.h
index f687b384b5fd8c56e0f1b7259f3a112012b5e398..89265dc435231db980723466cf5b9b942588d433 100644
--- a/src/functions/tnlFunctionAdapter.h
+++ b/src/functions/tnlFunctionAdapter.h
@@ -52,7 +52,7 @@ class tnlFunctionAdapter< Mesh, Function, tnlGeneralFunction >
                                 const IndexType index,
                                 const RealType& time = 0.0 )
       {
-         return function.getValue( mesh.template getEntityCenter< MeshEntityDimension >,
+         return function.getValue( mesh, //.template getEntityCenter< MeshEntityDimension >,
                                    index,
                                    time );
       }
@@ -87,7 +87,7 @@ class tnlFunctionAdapter< tnlGrid< Dimensions, Real, Device, Index >, Function,
                                 const CoordinatesType& coordinates,
                                 const RealType& time = 0.0 )
       {
-         return function.getValue( mesh.template getCellCenter< VertexType >( coordinates ),
+         return function.getValue( mesh, //.template getCellCenter< VertexType >( coordinates ),
                                    index,
                                    time );
       }