when flushing a node, check whether we have a context before dereferencing the pointe...