Fixed zero entry bugs. Some categories from different metadata variables
were the same and so the matrix was overiding duplicates.