Fixed a problem where the buy button was disabled at the wrong time