Fixed some session issues.