fix session initialization

Change-Id: I7b087464d60ad1581b6ba79198dc410817138373