fixed client session bug