session deletion bug fix