Bug fix for grouping patents by label, needs to group on the category value