update category attributes, fix #16