Fixed #33. Session no longer segfaults.