fix a bug that prevented vending