diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index 7a901307c315ece4d55ae1e7e1ee97a4aa28b226..dafab2ddaa27bbffe9cb86b6f3d3d4fb8c59c560 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -297,25 +297,28 @@ int main(int argc, char *argv[]) {
            first_frictional_node < frictionalNodes.size())
       ++first_frictional_node;
 
-    Dune::shared_ptr<TimeSteppingScheme<VectorType, MatrixType,
-                                        decltype(dirichletFunction), dim>>
+    Dune::shared_ptr<TimeSteppingScheme<
+        VectorType, MatrixType, Dune::VirtualFunction<double, double>, dim>>
     timeSteppingScheme;
     switch (parset.get<Config::scheme>("timeSteppingScheme")) {
       case Config::ImplicitTwoStep:
-        timeSteppingScheme = Dune::make_shared<ImplicitTwoStep<
-            VectorType, MatrixType, decltype(dirichletFunction), dim>>(
+        timeSteppingScheme = Dune::make_shared<
+            ImplicitTwoStep<VectorType, MatrixType,
+                            Dune::VirtualFunction<double, double>, dim>>(
             stiffnessMatrix, u_initial, ud_initial, ignoreNodes,
             dirichletFunction);
         break;
       case Config::ImplicitEuler:
-        timeSteppingScheme = Dune::make_shared<ImplicitEuler<
-            VectorType, MatrixType, decltype(dirichletFunction), dim>>(
+        timeSteppingScheme = Dune::make_shared<
+            ImplicitEuler<VectorType, MatrixType,
+                          Dune::VirtualFunction<double, double>, dim>>(
             stiffnessMatrix, u_initial, ud_initial, ignoreNodes,
             dirichletFunction);
         break;
       case Config::Newmark:
         timeSteppingScheme = Dune::make_shared<
-            Newmark<VectorType, MatrixType, decltype(dirichletFunction), dim>>(
+            Newmark<VectorType, MatrixType,
+                    Dune::VirtualFunction<double, double>, dim>>(
             stiffnessMatrix, massMatrix, u_initial, ud_initial, udd_initial,
             ignoreNodes, dirichletFunction);
         break;