fixed the graph path to be working with a closure