delay freeing nodes to freeing document