Fixed a couple bugs.

One in session, one in xml2obj.