Fixed error in price calculation