Fixed bug in Session class causing the session not to be started.