Are the people getting this issue using the mouse or spamming 0 on the numpad to buy them multiple times? If the latest, it's possible the cursor is positioning itself on the wrong item after the buy, even if the tab is hidden.
Another thing to check is if the confirmation dialog is really asking confirmation for the item you want to buy or the wrong one.