Fix sso login crash