Fixed user session bug