fix num_existing_items