diff --git a/test/implicit/mpnc/evaporationatmosphereproblem.hh b/test/implicit/mpnc/evaporationatmosphereproblem.hh
index 0d6d714c3b8ebea8d41b82cf1214b5d381a228e2..acfa4caa39f6f65359f82e8ee6b7d2d3ecab816a 100644
--- a/test/implicit/mpnc/evaporationatmosphereproblem.hh
+++ b/test/implicit/mpnc/evaporationatmosphereproblem.hh
@@ -83,12 +83,12 @@ NEW_TYPE_TAG(EvaporationAtmosphereProblem,
 // Set the grid type
 SET_PROP(EvaporationAtmosphereProblem, Grid)
 {
-#ifdef HAVE_UG
-    typedef typename Dune::UGGrid<2> type;
-#elif HAVE_ALUGRID
+#if HAVE_ALUGRID
     typedef typename Dune::ALUGrid<2, 2, Dune::cube, Dune::nonconforming> type;
+#elif HAVE_UG
+    typedef typename Dune::UGGrid<2> type;
 #else
-    Dune::YaspGrid<2> type;
+    typedef typename Dune::YaspGrid<2> type;
 #endif
 };