fixed multiple stores and 'in' queries