fixed a wrong assighment

the matching state's next state maybe wrong