Fixed a bug related to the incorrect calculation of commission with replacement items