Fixed issues with user session object