check for allow_gc in that method. There is another place that you should track which node was cleared.