fixed bugs in sort by prices, etc.