Fixed a bug on product query.