The problem with typing extra items in the check\Проблема с печатанием лишних позиций в чеке

It looks like when the waiter closes the ticket, the random product in the ticket changes to another product.