diff --git a/dune/istl/paamg/test/galerkintest.cc b/dune/istl/paamg/test/galerkintest.cc
index 0c068a18dd21e10f7211c51a69c007c30a9edbde..fb4e65b84bef3f5c0274caad42722c392bad6dd8 100644
--- a/dune/istl/paamg/test/galerkintest.cc
+++ b/dune/istl/paamg/test/galerkintest.cc
@@ -80,7 +80,7 @@ void testCoarsenIndices(int N)
 
   ParallelInformation coarseInfo(MPI_COMM_WORLD);
   ParallelIndexSet&      coarseIndices = coarseInfo.indexSet();
-  RemoteIndices coarseRemote = coarseInfo.remoteIndices();
+  RemoteIndices& coarseRemote = coarseInfo.remoteIndices();
 
   typename Dune::PropertyMapTypeSelector<Dune::Amg::VertexVisitedTag,PropertiesGraph>::Type visitedMap = Dune::get(Dune::Amg::VertexVisitedTag(), pg);