fix query for vendors