bug in price calculation