fixed sso bug