Fixed debug output scopes.