Fixed all Quantity compile errors