Fix referrers children duplication

This should fix the unnecessary creation of documents in relation with referrers/children.