Fixed adding state to TuringMashine when m_latest_state is zero.