fix session issue for node demo