Fixes session reference issue

Linked to issue #1