make more robust when Quantity created with no data