BUGFIX: attributes can belong to different scopes