element count fix