Fix trans_api bug