log bug fix