Fix graph tracing