fixed user session bug