Fixed (again) the getPrices method