def fixup_state(self, from_str, state):
result = self.get_local_final_result()<EOL>if from_str == fw_const.FW_CR_OP:<EOL><INDENT>if result == fw_const.RESULT_FW_DELETE_INIT:<EOL><INDENT>return state + <NUM_LIT:1><EOL><DEDENT><DEDENT>if from_str == fw_const.FW_DEL_OP:<EOL><INDENT>if result == fw_const.RESULT_FW_CREATE_INIT:<EOL><INDENT>return state - <NUM_LIT:1><EOL><DEDENT><DEDENT>return state<EOL>
Fixup state after retart.

        Fixup the state, if Delete is called when create SM is half-way
        through.