fixed the null value in session init