Fixed an error on the cost reduction calculation