inner vs nested inner scope fix: rel[id]===self || assign it