Fixed #33. Session no longer segfaults.
Merge pull request #34 from guilhermeblanco/session_fix

Fixed #33. Session no longer segfaults.