trying to fix sessions bug