fix space unauthorize api bug