Fixed assertion on reconnect/newsession.