Why is the auto numbering function duplicating numbers?