Fix issue with sessions.