Bugfix: switching to a session instead of creating a new one

Fix #6