fixed debug_trace