user session bug fix