Fix storage of session.