Fix DOMinsert count problem