fix set role api bug