Delets unneccessary session flush