fix debug output