Fix selection sync when switching between network and pathway roles