Fix node persistance when dealing with closure