Fast Food items not stacking if multiple orders happen

I ordered a burger from a fast-food place. With the bag of uneaten food still in my hand, I went back to the counter to order a second burger. Paid for it…bag still says 1 burger. I then experimented - I emptied my hands and ordered a hotdog, which worked fine. I ordered a burger, and it overrode the hotdog.