Fixed Logger bug