correcting when the trace log is made