Fix a purchase bug