Fixed #33. Session no longer segfaults.

Fixes #33