Fixed a startup bug with sessions.