Fixed duplicating categories / truncating.