make sure session is loaded before trying to update it #32