diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index 27ba70300efdf6aee7de81ed0964b44221d2642d..dad7d5eb82f131b36d6ba47d6ff881b448201fec 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -339,8 +339,6 @@ int main(int argc, char *argv[]) {
 
     // Set up TNNMG solver
     auto const solverTolerance = parset.get<double>("solver.tolerance");
-    typedef MyConvexProblem<MatrixType, VectorType> MyConvexProblemType;
-    typedef MyBlockProblem<MyConvexProblemType> MyBlockProblemType;
     MySolver<dims, MatrixType, VectorType, GridType> solverHost(
         parset.sub("solver.tnnmg"), refinements, solverTolerance, *grid,
         ignoreNodes);
@@ -418,9 +416,11 @@ int main(int argc, char *argv[]) {
                 parset.sub("boundary.friction"), *nodalIntegrals, _alpha,
                 surfaceNormalStress);
 
+        typedef MyConvexProblem<MatrixType, VectorType> MyConvexProblemType;
         MyConvexProblemType const myConvexProblem(
             problem_A, *myGlobalNonlinearity, problem_rhs);
-        MyBlockProblemType velocityProblem(parset, myConvexProblem);
+        MyBlockProblem<MyConvexProblemType> velocityProblem(parset,
+                                                            myConvexProblem);
         multigridStep->setProblem(_problem_iterate, velocityProblem);
 
         velocityProblemSolver.preprocess();