Fix output log bug