fix regression to session reestablishment

fixes issue #1929