Fix bug when sign in