Fixed SSO bug