Fix single sign-on