Fixed base data type bug that caused the prices to be calculated incorrectly.