fix issue in session removement