expired session bug fix