session management bug fixed