Fix #280: recover when session is missing