fix a issue when sign in