fix tracing bug