fix targetQuantity