debug output fix