fix session name being hidden, and NaN bug