fix the get session issue