diff --git a/preprocessor/DataTree.cc b/preprocessor/DataTree.cc
index f151fa3aa8be1e22c474189764e60c0a12a19587..cc8da091d28b990080576c94986a088f0a2fc853 100644
--- a/preprocessor/DataTree.cc
+++ b/preprocessor/DataTree.cc
@@ -659,7 +659,6 @@ DataTree::writePowerDeriv(ostream &output, bool use_dll) const
            << "            dxp = dxp*p;" << endl
            << "            p = p-1;" << endl
            << "        end" << endl
-           << "    end" << endl
-           << "end" << endl;
+           << "    end" << endl;
 
 }