Fix function resource.traverse