Fix session lost randomly