diff --git a/tutorials/math/exampleMultiRoot.C b/tutorials/math/exampleMultiRoot.C
index f941131a4c96e526f58f3d87123811b4f46355bc..eae9e5f13dda056bcb5f1493e8f86e2dd85f296b 100644
--- a/tutorials/math/exampleMultiRoot.C
+++ b/tutorials/math/exampleMultiRoot.C
@@ -55,9 +55,7 @@ void exampleMultiRoot(const char * algo = 0, int printlevel = 1) {
 
 #ifndef R__HAS_MATHMORE
    Error("exampleMultiRoot","libMathMore is not available - cannot run this tutorial");
-   return;
-#endif
-
+#else
    ROOT::Math::MultiRootFinder r(algo);
    //defining the function
    // use Rosenbrock functions
@@ -75,5 +73,6 @@ void exampleMultiRoot(const char * algo = 0, int printlevel = 1) {
    // starting point
    double x0[2]={-1,-1};
    r.Solve(x0);
+#endif
 }