vic added restoreAttributeType to CategoryManager