session mode fix