Fix cleanSession setting