Fix SessionState.retries updates