Fix unionSets so that it can merge correctly.