Fix bug: block merge merges different root groups.

Was merging the groups together despite the intersection being non-empty.