fixed session bug