Fix: start session when needed in get_state().