Fix session table #2192

Please review fix for issue #2192.