Fix Logger bug