Fix error in merging character set transitions