fix element count for print limit