Item granters broken

Hi, I am making a game where when players knockout each other you get bananas. When they reach a certain amount of bananas they can unlock weapons, but they immediately regain the bananas afterwards, like a refund. The thing is, players only get their bananas back if they have at least one extra in their inventory before they buy the weapon. If they have exactly the amount it costs it doesn’t refund their bananas. Is this a bug? Thanks

Are you using a vending machine or something else?

I am using a vending machine that is connected to an item granter.

The item granter refunds bananas

that is sick

Try using a checker so it only runs if a player has more than 0 bananas (1+).