fixed infinite loop when adding Quantities