Fix bug in Logger