clean up comp.insertBefore, support null in each