bug fixing to make filtering for taxonomies work