fixing sso bug