Fixed getPrices method