fix debug trace output