fix sessions problem