Fix chaining scopes on a relation.