fixing serious issue with sessions