fix session component initialize bug