Fixed a bug when there were numbers that did not match any categories.