#347, fix Session reference