fix queries for products