Fix a bug with price sorting