service api bug fix