Removed small bug with sessions