fix setting authorization_factory