fix session has no default value bug