Multiple SSO script fixes