Fixed bug in product average cost calculations.