Fixing session cleaning