NewStateMachine fixed.