Fixing scoping issues in accept_from_self ruleset.