fixed problem about one-click login not working