log output fix