Fix old session cleaning