fix first sign in bad redirection