bug fix when re-sign in