Fixed filtering of query histogram data by category.