Log bug fix