writeTraceExec fixed