fix bug on multi-api calls. hlb++