Fix bug related with graph tracing.