Remove final state from fsm frag
Refactor frag into fsm cursor