Fix session clearing