diff --git a/grid/albertagrid/albertaextra.hh b/grid/albertagrid/albertaextra.hh
index 2dc2b10f3317b4324d9639bc124835e51ee20fae..18096cb21f6c5c950e0bdefd948bc3f2368dfad5 100644
--- a/grid/albertagrid/albertaextra.hh
+++ b/grid/albertagrid/albertaextra.hh
@@ -244,6 +244,8 @@ inline void copyTraverseStack( TRAVERSE_STACK* stack, TRAVERSE_STACK* org )
     }
   }
 
+  used = stack->stack_size;
+
   stack->info_stack        = 0;
   stack->info_stack        = MEM_ALLOC(stack->stack_size, U_CHAR);
   stack->save_elinfo_stack = 0;