session bug fix