Fix session clearing.