fixed indexing so that correct price is displayed