diff --git a/dune/uggrid/parallel/dddif/priority.cc b/dune/uggrid/parallel/dddif/priority.cc
index ee3ea0a71f0fcc4f1b3ceb253d105ee87975eb7b..ba2d441a831a3cccde01ec79245ace25ad47b16a 100644
--- a/dune/uggrid/parallel/dddif/priority.cc
+++ b/dune/uggrid/parallel/dddif/priority.cc
@@ -438,6 +438,7 @@ void NS_DIM_PREFIX SetGhostObjectPriorities (GRID *theGrid)
     if (VEC_DEF_IN_OBJ_OF_GRID(theGrid,SIDEVEC))
       for (i=0; i<SIDES_OF_ELEM(theElement); i++)
       {
+        VECTOR *theVector = SVECTOR(theElement,i);
         if (USED(theVector) || THEFLAG(theVector))
           SETPRIOX(context, theVector,PRIO_CALC(theVector));
       }