fix session off bug