fix redirect problem after signing in