fixed state machine application order bug