session management fix