Fix for the connect sessions issue

Fixes #184