Issue #1604. Remote bag. Fix issue with duplicated edges.