diff --git a/test/harmonicenergytest.cc b/test/harmonicenergytest.cc
index 3b4aff52ceb6b7199cf6745452c4eb0b90d19659..3081406f0103e3f4b0da62de201c6e21818d079a 100644
--- a/test/harmonicenergytest.cc
+++ b/test/harmonicenergytest.cc
@@ -32,8 +32,8 @@ void testEnergy(const GridType* grid, const std::vector<TargetSpace>& coefficien
         std::cout << "energy: " << assembler.energy(*grid->template leafbegin<0>(), 
                                                     rotatedCoefficients) << std::endl;
 
-        std::vector<Dune::FieldVector<double,3> > rotatedGradient;
-        assembler.assembleGradient(*grid->template leafbegin<0>(),
+        std::vector<typename TargetSpace::EmbeddedTangentVector> rotatedGradient;
+        assembler.assembleEmbeddedGradient(*grid->template leafbegin<0>(),
                                    rotatedCoefficients,
                                    rotatedGradient);