Show Choose Dialog and/or add items to list

and I create the first order

Everything OK
I click on "CREATE" to create a second order

but when I confirm, it creates two identical ordinu by replacing the previous one

I did a lot of tests, but the only piece I found is to insert the highlighted block

Can someone help me? Don't want to release an App with a patch that I don't understand?
Thanks to those who can help me