Logger bug fix