Fix session deletion bug.