I will look into it. They should all use the same system.
Expected behavior: you can buy as many as you have money for. Currently you should be able to still click the button if you can not afford it but you should not get benefits.
When the bug happens does the value update to the right number when hitting next?
Do you still get the benefits from the items you can not afford?