separated group and total counts
Fixed index error when all entries are disabled.