Wrong start for counting when of palletizing

Hi

The robot has to pick up 192 items on a pallet and put them in a machine, it will not take the last item, I think the problem is that in a popup menu you have to press 0 to take item no. 1
what should I do, it should be such that when you type 1 then it takes item no. 1?
do i have make a cript?

screen dump of the program: