Fixing the bug on the quantity on buying