fix the case of compo list == 0 or null