Fixed error with quantity equaling 0 in Util