fixed logger scope.