Fixed Session handling issue.